package message

import (
	"github.com/romberli/go-util/config"
)

const (
	// server
	WarnServerStart      = 200001
	WarnServerStop       = 200002
	WarnServerIsRunning  = 200003
	WarnServerNotRunning = 200004
)

func initInfoMessage() {
	// server
	Messages[WarnServerStart] = config.NewErrMessage(DefaultMessageHeader, WarnServerStart, "das started. addr: %s, pid: %d, pid file: %s")
	Messages[WarnServerStop] = config.NewErrMessage(DefaultMessageHeader, WarnServerStop, "das stopped successfully. pid: %d, pid file: %s")
	Messages[WarnServerIsRunning] = config.NewErrMessage(DefaultMessageHeader, WarnServerIsRunning, "das is running. pid: %d")
	Messages[WarnServerNotRunning] = config.NewErrMessage(DefaultMessageHeader, WarnServerNotRunning, "das is not running. pid: %d")
}
